Skip to main content

Digital Trends may earn a commission when you buy through links on our site. Why trust us?

Code in formation: New York City teachers are using Beyonce to learn JavaScript

bey script beyonce code computer science
ANDRE DURAO/Shutterstock
Who would be better at teaching people how to get code in formation than Beyoncé? That’s what one educator asked herself when she was looking for a way to teach JavaScript.

While the singing superstar is not directly teaching people how to code, computer science educator Emily Thomforde is teaching Bey Script, a computational metaphor she developed that uses Beyoncé to teach nontechnical educators such as English and history teachers in New York City how to use JavaScript and teach it to their students. The three-session course is held throughout the year.

In computer science, a “metaphor” helps a user understand how certain computational procedures work by using an entity the user is familiar with. “If you imagine Beyoncé were an object we’re using in JavaScript, her ‘methods’ are things that she can do, like sing and dance,” Thomforde told Motherboard. “I relate all these arcane, technical, traditionally geeky things into ways my audience can relate to, and we found Beyonce was super-relatable.”

In the course, Thomforde teaches Javascript concepts such as “Properties” using things everyone can easily visualize, like Beyonce’s internationally revered and illusive hair. “Now we have ‘beyonce.hair’, since hair is a property of Beyoncé. What’s a thing about her hair that can change? Now we have ‘beyonce.hair.color’. Then we can set it equal to something: ‘beyonce.hair.color=red.'”

The Bey Script course is part of the New York City Foundation for Computer Science Education’s (CSNYC) 10-year, $80 million initative to provide every public school student with computer science education. Thomforde is currently writing the curriculum for Vidcode, an online platform that teaches teenagers to code. In May, Vidcode collaborated with the New York City Department of Education to host a hackathon event where 150 kids were tasked with using Vidcode to learn how to use Javascript to make a video that helps abandoned animals currently living in shelters.

With President Obama pledging $4 billion to make sure every kid across America gets computer science education, it may not be long before kids are making Lemonade on their computers.

Editors' Recommendations

Keith Nelson Jr.
Former Digital Trends Contributor
Keith Nelson Jr is a music/tech journalist making big pictures by connecting dots. Born and raised in Brooklyn, NY he…
Best OLED monitor deals: Get an OLED screen from just $450
Marvel's Spider-Man running on the Samsung Odyssey OLED G8.

Up to a couple of years ago, OLED technology only really existed in OLED TVs and very-high-end monitors that cost thousands and thousands of dollars. Luckily, the prices have come down quite substantially, even on the best OLED monitors, especially as the market gets more saturated with options. That means that if you tend to use a monitor for the majority of your content consumption, such as gaming, then you can grab an OLED monitor for a great price and experience amazing visual fidelity and reproduction.

To that end, we've gone out and scoured all the major retailers and brands to find our favorite OLED monitor deals out there and compiled them below. That said, if you haven't quite found what you're looking for, or feel you aren't ready for an OLED monitor, be sure to check out some of these other great monitor deals.
LG UltraGear 27-inch gaming monitor -- $660, was $1,000

Read more
AMD’s graphics card sales just took a nosedive
RX 7900 XTX installed in a test bench.

AMD may make some of the best graphics cards you can buy, but they aren't selling well. In its financial results for the first quarter of 2024,  AMD shared that gaming revenue was down 33% compared to the previous quarter, and down 48% compared to the same point last year.

In total, AMD brought in $922 million in its gaming segment in the first quarter. For reference, in Nvidia's previous revenue report, it reported $2.9 billion for its gaming segment. AMD attributes the drop in revenue to "a decrease in semi-custom revenue and lower AMD Radeon GPU sales."

Read more
Best GPU deals: MSI, XFX, EVGA
An AMD graphics card in an external GPU enclosure.

Getting into gaming can be an expensive hobby, especially if you're building a new PC from scratch and want to get the best GPU that you possibly can. Unfortunately, in the past couple of years, GPU prices have skyrocketed, especially for RTX 40-series cards, and they don't look to be coming down any time soon, whether you're going for AMD or Nvidia. Luckily, there are still quite a lot of great deals you can take advantage of that will let you snag a card for a great price, and we've collected some of our favorites below. That said if you'd rather go for something that's already been put together, check out these gaming PC deals instead.
XFX SPEEDSTER SWFT210 AMD Radeon RX 6600 Core 8GB GDDR6 -- $230, was $280

XFX is a pretty well-known brand that makes AMD Radeon GPUs, so you're getting a good-quality device right out of the gate. It has an impressive 8GB GDDR6, at least for this price bracket, and will give you a bit longer life out of it when games start using up a lot more VRAM, even at lower graphical settings. While the base clock runs at 2.0 GHz, the boosted clock speed is 2.5 GHz which is pretty good, and the whole thing is unlocked, so you could theoretically boost it higher if you have the right cooling. This RTX 6600 can support resolutions up to 8K, but really, this is an ideal 1080p gaming GPU.

Read more